//
//  ViewController.swift
//  0229-testKVC
//
//  Created by 王柯佳 on 16/2/29.
//  Copyright © 2016年 wkjsos. All rights reserved.
//

import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let baseModel = BaseModel()
        
        // 设置可选项的属性默认是nil
        print("\(baseModel.phoneNumber) \(baseModel.password) \(baseModel.userName) \(baseModel.email)")
        
        
        
        let baseModel2 = BaseModel(Dictionary: ["phoneNumber" : "15936061896", "password" : "123456", "userName" : "存在感", "email" : "wangkejialive@gmail", "sex" : "男"])
        
        
        print("\(baseModel2.phoneNumber) \(baseModel2.password) \(baseModel2.userName) \(baseModel2.email)")
        
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
    }


}

